<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>ESP8266 ILI9341 display support code with printf sources, wire-frame viewer and custom fonts: fatfs.sup/fatfs_sup.h File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">ESP8266 ILI9341 display support code with printf sources, wire-frame viewer and custom fonts
   &#160;<span id="projectnumber">1.0</span>
   </div>
   <div id="projectbrief">ESP8266ILI9341DisplayProject</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_b666832e27e3be33c87e99ef6d60e3b7.html">fatfs.sup</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a> &#124;
<a href="#var-members">Variables</a>  </div>
  <div class="headertitle">
<div class="title">fatfs_sup.h File Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><a href="fatfs__sup_8h_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:ae7b9417320aaaa1c1dfb229cad6669d8"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <a class="el" href="send_8c.html#a435d1572bf3f880d55459d9805097f62">uint32_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="fatfs__sup_8h.html#ae7b9417320aaaa1c1dfb229cad6669d8">tm_to_fat</a> (<a class="el" href="time_8h.html#a2fea857c30e2c901566fcf45fac68ac5">tm_t</a> *t)</td></tr>
<tr class="memdesc:ae7b9417320aaaa1c1dfb229cad6669d8"><td class="mdescLeft">&#160;</td><td class="mdescRight">FAT time structer reference.  <a href="#ae7b9417320aaaa1c1dfb229cad6669d8">More...</a><br /></td></tr>
<tr class="separator:ae7b9417320aaaa1c1dfb229cad6669d8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae0f1746ad69d0d4b90cba250c6774ca8"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <a class="el" href="integer_8h.html#ad342ac907eb044443153a22f964bf0af">DWORD</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="fatfs__sup_8h.html#ae0f1746ad69d0d4b90cba250c6774ca8">get_fattime</a> (void)</td></tr>
<tr class="memdesc:ae0f1746ad69d0d4b90cba250c6774ca8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Read time and convert to FAT32 time.  <a href="#ae0f1746ad69d0d4b90cba250c6774ca8">More...</a><br /></td></tr>
<tr class="separator:ae0f1746ad69d0d4b90cba250c6774ca8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab3509aecf1844c84f1797e5b567d531c"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="fatfs__sup_8h.html#ab3509aecf1844c84f1797e5b567d531c">put_rc</a> (int rc)</td></tr>
<tr class="memdesc:ab3509aecf1844c84f1797e5b567d531c"><td class="mdescLeft">&#160;</td><td class="mdescRight">display FatFs return code as ascii string  <a href="#ab3509aecf1844c84f1797e5b567d531c">More...</a><br /></td></tr>
<tr class="separator:ab3509aecf1844c84f1797e5b567d531c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2bfd82a70117cdb8941b6b0a2c069dbd"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="fatfs__sup_8h.html#a2bfd82a70117cdb8941b6b0a2c069dbd">fatfs_scan_files</a> (char *path)</td></tr>
<tr class="memdesc:a2bfd82a70117cdb8941b6b0a2c069dbd"><td class="mdescLeft">&#160;</td><td class="mdescRight">Use were <a class="el" href="structFILINFO.html">FILINFO</a> structure can be share in many functions See: fatfs_alloc_filinfo(), <a class="el" href="fatfs__sup_8c.html#a2bfd82a70117cdb8941b6b0a2c069dbd" title="Use were FILINFO structure can be share in many functions See: fatfs_alloc_filinfo(), fatfs_scan_files() and fatfs_ls() ">fatfs_scan_files()</a> and <a class="el" href="fatfs__tests_8c.html#a5306e261e84e6700704633a53153857c">fatfs_ls()</a>  <a href="#a2bfd82a70117cdb8941b6b0a2c069dbd">More...</a><br /></td></tr>
<tr class="separator:a2bfd82a70117cdb8941b6b0a2c069dbd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae9c5ed10edd2df490945033c4ddfbeab"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="fatfs__sup_8h.html#ae9c5ed10edd2df490945033c4ddfbeab">fatfs_fstype</a> (int type)</td></tr>
<tr class="memdesc:ae9c5ed10edd2df490945033c4ddfbeab"><td class="mdescLeft">&#160;</td><td class="mdescRight">return a string with the file system type  <a href="#ae9c5ed10edd2df490945033c4ddfbeab">More...</a><br /></td></tr>
<tr class="separator:ae9c5ed10edd2df490945033c4ddfbeab"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad7d2063fab39190a7288bfa7cb647b46"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="fatfs__sup_8h.html#ad7d2063fab39190a7288bfa7cb647b46">fatfs_status</a> (char *ptr)</td></tr>
<tr class="memdesc:ad7d2063fab39190a7288bfa7cb647b46"><td class="mdescLeft">&#160;</td><td class="mdescRight">Compute space used, number of directories and files contained used by a drive.  <a href="#ad7d2063fab39190a7288bfa7cb647b46">More...</a><br /></td></tr>
<tr class="separator:ad7d2063fab39190a7288bfa7cb647b46"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a11c6644c2b989d1ac2492b30b80e4ead"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="fatfs__sup_8h.html#a11c6644c2b989d1ac2492b30b80e4ead">fatfs_filinfo_list</a> (<a class="el" href="structFILINFO.html">FILINFO</a> *<a class="el" href="network_8c.html#a1202cd63c360958e6272f9a20fa90f8b">info</a>)</td></tr>
<tr class="memdesc:a11c6644c2b989d1ac2492b30b80e4ead"><td class="mdescLeft">&#160;</td><td class="mdescRight">Display <a class="el" href="structFILINFO.html">FILINFO</a> structure in a readable format.  <a href="#a11c6644c2b989d1ac2492b30b80e4ead">More...</a><br /></td></tr>
<tr class="separator:a11c6644c2b989d1ac2492b30b80e4ead"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="var-members"></a>
Variables</h2></td></tr>
<tr class="memitem:a1e9c5ddcfdf89c9a42c96ee1d2196876"><td class="memItemLeft" align="right" valign="top"><a class="el" href="integer_8h.html#ad342ac907eb044443153a22f964bf0af">DWORD</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="fatfs__sup_8h.html#a1e9c5ddcfdf89c9a42c96ee1d2196876">AccSize</a></td></tr>
<tr class="memdesc:a1e9c5ddcfdf89c9a42c96ee1d2196876"><td class="mdescLeft">&#160;</td><td class="mdescRight">Total file space used.  <a href="#a1e9c5ddcfdf89c9a42c96ee1d2196876">More...</a><br /></td></tr>
<tr class="separator:a1e9c5ddcfdf89c9a42c96ee1d2196876"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8886578bc67fc71837328a1ee237d10c"><td class="memItemLeft" align="right" valign="top"><a class="el" href="integer_8h.html#a197942eefa7db30960ae396d68339b97">WORD</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="fatfs__sup_8h.html#a8886578bc67fc71837328a1ee237d10c">AccFiles</a></td></tr>
<tr class="memdesc:a8886578bc67fc71837328a1ee237d10c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Total number or Files and Directories.  <a href="#a8886578bc67fc71837328a1ee237d10c">More...</a><br /></td></tr>
<tr class="separator:a8886578bc67fc71837328a1ee237d10c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4fb5ebb5ee82d1ddf3fdcf88329dd5d3"><td class="memItemLeft" align="right" valign="top"><a class="el" href="integer_8h.html#a197942eefa7db30960ae396d68339b97">WORD</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="fatfs__sup_8h.html#a4fb5ebb5ee82d1ddf3fdcf88329dd5d3">AccDirs</a></td></tr>
<tr class="separator:a4fb5ebb5ee82d1ddf3fdcf88329dd5d3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aae427cc909a4b5993032934d85fd8c31"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structFATFS.html">FATFS</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="fatfs__sup_8h.html#aae427cc909a4b5993032934d85fd8c31">Fatfs</a> [<a class="el" href="ffconf_8h.html#a366da9a40c8ceb3103a6b72ca02b9969">_VOLUMES</a>]</td></tr>
<tr class="memdesc:aae427cc909a4b5993032934d85fd8c31"><td class="mdescLeft">&#160;</td><td class="mdescRight">FatFs Drive Volumes.  <a href="#aae427cc909a4b5993032934d85fd8c31">More...</a><br /></td></tr>
<tr class="separator:aae427cc909a4b5993032934d85fd8c31"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Function Documentation</h2>
<a class="anchor" id="a11c6644c2b989d1ac2492b30b80e4ead"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> void fatfs_filinfo_list </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structFILINFO.html">FILINFO</a> *&#160;</td>
          <td class="paramname"><em>info</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Display <a class="el" href="structFILINFO.html">FILINFO</a> structure in a readable format. </p>
<ul>
<li>Credit: part of FatFs avr example project (C)ChaN, 2013.</li>
<li>Example: <pre class="fragment">/// ----A 2014/10/16 00:39        14    test2.txt  
/// D---- 2014/10/12 21:29         0          tmp 
/// </pre> <pre class="fragment">@param[in] : FILINFO pointer
@return  void  </pre> </li>
</ul>

<p>Definition at line <a class="el" href="fatfs__sup_8c_source.html#l00335">335</a> of file <a class="el" href="fatfs__sup_8c_source.html">fatfs_sup.c</a>.</p>

<p>Referenced by <a class="el" href="fatfs__tests_8c_source.html#l00313">fatfs_ls()</a>.</p>

</div>
</div>
<a class="anchor" id="ae9c5ed10edd2df490945033c4ddfbeab"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> char* fatfs_fstype </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>type</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>return a string with the file system type </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">type</td><td>file system type </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>string with file system type </dd></dl>

<p>Definition at line <a class="el" href="fatfs__sup_8c_source.html#l00232">232</a> of file <a class="el" href="fatfs__sup_8c_source.html">fatfs_sup.c</a>.</p>

<p>Referenced by <a class="el" href="fatfs__sup_8c_source.html#l00268">fatfs_status()</a>.</p>

</div>
</div>
<a class="anchor" id="a2bfd82a70117cdb8941b6b0a2c069dbd"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> int fatfs_scan_files </td>
          <td>(</td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>path</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Use were <a class="el" href="structFILINFO.html">FILINFO</a> structure can be share in many functions See: fatfs_alloc_filinfo(), <a class="el" href="fatfs__sup_8c.html#a2bfd82a70117cdb8941b6b0a2c069dbd" title="Use were FILINFO structure can be share in many functions See: fatfs_alloc_filinfo(), fatfs_scan_files() and fatfs_ls() ">fatfs_scan_files()</a> and <a class="el" href="fatfs__tests_8c.html#a5306e261e84e6700704633a53153857c">fatfs_ls()</a> </p>
<p>Allocate <a class="el" href="structFILINFO.html">FILINFO</a> structure and optional long file name buffer</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">allocate</td><td>If allocate is true use calloc otherwise return static __filinfo </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd>fatfs_free_filinfo() </dd>
<dd>
<a class="el" href="fatfs__sup_8c.html#a2bfd82a70117cdb8941b6b0a2c069dbd" title="Use were FILINFO structure can be share in many functions See: fatfs_alloc_filinfo(), fatfs_scan_files() and fatfs_ls() ">fatfs_scan_files()</a> </dd>
<dd>
<a class="el" href="fatfs__tests_8c.html#a5306e261e84e6700704633a53153857c">fatfs_ls()</a> </dd></dl>
<dl class="section return"><dt>Returns</dt><dd><a class="el" href="structFILINFO.html">FILINFO</a> * on success </dd>
<dd>
NULL on error Compute space used, number of directories and files contained under a specified directory</dd></dl>
<ul>
<li>Credit: part of FatFs avr example project (C)ChaN, 2013</li>
</ul>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">path</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="ff_8c.html#aeb607fa4b05d127d971ff40f143bac66">f_opendir()</a> </dd>
<dd>
<a class="el" href="ff_8c.html#ae9647e339708c3d803db8de141986d96">f_readdir()</a> </dd>
<dd>
<a class="el" href="fatfs__sup_8c.html#a4fb5ebb5ee82d1ddf3fdcf88329dd5d3">AccDirs</a>: Total number of directories </dd>
<dd>
<a class="el" href="fatfs__sup_8c.html#a8886578bc67fc71837328a1ee237d10c" title="Total number or Files and Directories. ">AccFiles</a>: Total number of Files </dd>
<dd>
<a class="el" href="fatfs__sup_8c.html#a1e9c5ddcfdf89c9a42c96ee1d2196876" title="Total file space used. ">AccSize</a>: Total size of all files </dd></dl>
<dl class="section return"><dt>Returns</dt><dd>0 if no error </dd>
<dd>
FafFs error code </dd></dl>

<p>Definition at line <a class="el" href="fatfs__sup_8c_source.html#l00194">194</a> of file <a class="el" href="fatfs__sup_8c_source.html">fatfs_sup.c</a>.</p>

<p>Referenced by <a class="el" href="fatfs__sup_8c_source.html#l00194">fatfs_scan_files()</a>, and <a class="el" href="fatfs__sup_8c_source.html#l00268">fatfs_status()</a>.</p>

</div>
</div>
<a class="anchor" id="ad7d2063fab39190a7288bfa7cb647b46"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> void fatfs_status </td>
          <td>(</td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>ptr</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Compute space used, number of directories and files contained used by a drive. </p>
<ul>
<li>Credit: part of FatFs avr example project (C)ChaN, 2013</li>
</ul>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">ptr</td><td>Drive path like "/" </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="ff_8c.html#a72098afbbef7ff8b850bacfc721d6bd0">f_getfree()</a> drive <a class="el" href="system_8c.html#a0f8c52d1c359b700088f8417b48e467b" title="Free buffer POSIX function We only call os_free() is pointer is not null. ">free</a> space </dd>
<dd>
<a class="el" href="fatfs__sup_8c.html#a2bfd82a70117cdb8941b6b0a2c069dbd" title="Use were FILINFO structure can be share in many functions See: fatfs_alloc_filinfo(), fatfs_scan_files() and fatfs_ls() ">fatfs_scan_files()</a> </dd>
<dd>
<a class="el" href="fatfs__sup_8c.html#a4fb5ebb5ee82d1ddf3fdcf88329dd5d3">AccDirs</a>: Total number of directories </dd>
<dd>
<a class="el" href="fatfs__sup_8c.html#a8886578bc67fc71837328a1ee237d10c" title="Total number or Files and Directories. ">AccFiles</a>: Total number of Files </dd>
<dd>
<a class="el" href="fatfs__sup_8c.html#a1e9c5ddcfdf89c9a42c96ee1d2196876" title="Total file space used. ">AccSize</a>: Total size of all files </dd></dl>
<dl class="section return"><dt>Returns</dt><dd>void </dd></dl>

<p>Definition at line <a class="el" href="fatfs__sup_8c_source.html#l00268">268</a> of file <a class="el" href="fatfs__sup_8c_source.html">fatfs_sup.c</a>.</p>

<p>Referenced by <a class="el" href="fatfs__tests_8c_source.html#l00101">fatfs_tests()</a>, <a class="el" href="mmc__hal_8c_source.html#l00208">mmc_init()</a>, and <a class="el" href="fatfs__tests_8c_source.html#l00271">mmc_test()</a>.</p>

</div>
</div>
<a class="anchor" id="ae0f1746ad69d0d4b90cba250c6774ca8"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <a class="el" href="integer_8h.html#ad342ac907eb044443153a22f964bf0af">DWORD</a> get_fattime </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Read time and convert to FAT32 time. </p>
<dl class="section return"><dt>Returns</dt><dd>FAT32 time. </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="fatfs__sup_8c.html#ae7b9417320aaaa1c1dfb229cad6669d8" title="FAT time structer reference. ">tm_to_fat()</a>. </dd></dl>

<p>Definition at line <a class="el" href="fatfs__sup_8c_source.html#l00130">130</a> of file <a class="el" href="fatfs__sup_8c_source.html">fatfs_sup.c</a>.</p>

</div>
</div>
<a class="anchor" id="ab3509aecf1844c84f1797e5b567d531c"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> void put_rc </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>rc</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>display FatFs return code as ascii string </p>
<p>Credit: Part of FatFs avr example project (C)ChaN, 2013 </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">rc</td><td>FatFs status return code </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>void </dd></dl>

<p>Definition at line <a class="el" href="fatfs__sup_8c_source.html#l00145">145</a> of file <a class="el" href="fatfs__sup_8c_source.html">fatfs_sup.c</a>.</p>

<p>Referenced by <a class="el" href="fatfs__tests_8c_source.html#l00313">fatfs_ls()</a>, <a class="el" href="fatfs__sup_8c_source.html#l00268">fatfs_status()</a>, <a class="el" href="fatfs__tests_8c_source.html#l00101">fatfs_tests()</a>, <a class="el" href="posix_8c_source.html#l01922">mkfs()</a>, and <a class="el" href="mmc__hal_8c_source.html#l00208">mmc_init()</a>.</p>

</div>
</div>
<a class="anchor" id="ae7b9417320aaaa1c1dfb229cad6669d8"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <a class="el" href="send_8c.html#a435d1572bf3f880d55459d9805097f62">uint32_t</a> tm_to_fat </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="time_8h.html#a2fea857c30e2c901566fcf45fac68ac5">tm_t</a> *&#160;</td>
          <td class="paramname"><em>t</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>FAT time structer reference. </p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="rtc_8h.html">rtc.h</a> </dd>
<dd>
<a href="http://lxr.free-electrons.com/source/fs/fat/misc.c">http://lxr.free-electrons.com/source/fs/fat/misc.c</a> <pre class="fragment">/// typedef struct
/// {
///     WORD   year;                                  /* 2000..2099 */
///     BYTE   month;                                 /* 1..12 */
///     BYTE   mday;                                  /* 1.. 31 */
///     BYTE   wday;                                  /* 1..7 */
///     BYTE   hour;                                  /* 0..23 */
///     BYTE   min;                                   /* 0..59 */
///     BYTE   sec;                                   /* 0..59 */
/// } RTC;
/// </pre> Convert Linux <a class="el" href="posix_8h.html#a1c3d85ae80df5590fa314acffd8bf840">POSIX</a> <a class="el" href="time_8h.html#a2fea857c30e2c901566fcf45fac68ac5" title="POSIX struct tm typedef. ">tm_t</a> * to FAT32 <a class="el" href="time_8h.html#a32b1cbd925752f0cd61d202bbe204a69" title="Return second from epoch - POSIX function. ">time</a>.</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">t</td><td>POSIX struct tm * to convert.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>FAT32 time. </dd></dl>

<p>Definition at line <a class="el" href="fatfs__sup_8c_source.html#l00113">113</a> of file <a class="el" href="fatfs__sup_8c_source.html">fatfs_sup.c</a>.</p>

<p>Referenced by <a class="el" href="fatfs__sup_8c_source.html#l00130">get_fattime()</a>, and <a class="el" href="rtc_8c_source.html#l00238">rtc_read()</a>.</p>

</div>
</div>
<h2 class="groupheader">Variable Documentation</h2>
<a class="anchor" id="a4fb5ebb5ee82d1ddf3fdcf88329dd5d3"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="integer_8h.html#a197942eefa7db30960ae396d68339b97">WORD</a> AccDirs</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="fatfs__sup_8c_source.html#l00164">164</a> of file <a class="el" href="fatfs__sup_8c_source.html">fatfs_sup.c</a>.</p>

<p>Referenced by <a class="el" href="fatfs__sup_8c_source.html#l00194">fatfs_scan_files()</a>, and <a class="el" href="fatfs__sup_8c_source.html#l00268">fatfs_status()</a>.</p>

</div>
</div>
<a class="anchor" id="a8886578bc67fc71837328a1ee237d10c"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="integer_8h.html#a197942eefa7db30960ae396d68339b97">WORD</a> AccFiles</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Total number or Files and Directories. </p>

<p>Definition at line <a class="el" href="fatfs__sup_8c_source.html#l00164">164</a> of file <a class="el" href="fatfs__sup_8c_source.html">fatfs_sup.c</a>.</p>

<p>Referenced by <a class="el" href="fatfs__sup_8c_source.html#l00194">fatfs_scan_files()</a>, and <a class="el" href="fatfs__sup_8c_source.html#l00268">fatfs_status()</a>.</p>

</div>
</div>
<a class="anchor" id="a1e9c5ddcfdf89c9a42c96ee1d2196876"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="integer_8h.html#ad342ac907eb044443153a22f964bf0af">DWORD</a> AccSize</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Total file space used. </p>

<p>Definition at line <a class="el" href="fatfs__sup_8c_source.html#l00161">161</a> of file <a class="el" href="fatfs__sup_8c_source.html">fatfs_sup.c</a>.</p>

<p>Referenced by <a class="el" href="fatfs__sup_8c_source.html#l00194">fatfs_scan_files()</a>, and <a class="el" href="fatfs__sup_8c_source.html#l00268">fatfs_status()</a>.</p>

</div>
</div>
<a class="anchor" id="aae427cc909a4b5993032934d85fd8c31"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structFATFS.html">FATFS</a> Fatfs[<a class="el" href="ffconf_8h.html#a366da9a40c8ceb3103a6b72ca02b9969">_VOLUMES</a>]</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>FatFs Drive Volumes. </p>

<p>Definition at line <a class="el" href="fatfs__sup_8c_source.html#l00043">43</a> of file <a class="el" href="fatfs__sup_8c_source.html">fatfs_sup.c</a>.</p>

<p>Referenced by <a class="el" href="mmc__hal_8c_source.html#l00208">mmc_init()</a>.</p>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Wed Jan 31 2018 21:22:16 for ESP8266 ILI9341 display support code with printf sources, wire-frame viewer and custom fonts by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.11
</small></address>
</body>
</html>
